package com.freely.domain;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

public class ValidatorUser {
	@NotBlank(message="缺少必要字段，更新失败")
	private String user_id;
	@Pattern(regexp="\\S{5,15}",message="昵称不能包含空格且长度限制在5-15")
	private String user_name;
	@Email
	private String user_email;
	@Pattern(regexp="^1[0-9]{10}$",message="错误的手机号格式")
	private String user_phone;
	private String user_image;

	public String getUser_id() {
		return user_id;
	}
	public void setUser_id(String user_id) {
		this.user_id = user_id;
	}
	public String getUser_name() {
		return user_name;
	}
	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}
	public String getUser_email() {
		return user_email;
	}
	public void setUser_email(String user_email) {
		this.user_email = user_email;
	}
	public String getUser_phone() {
		return user_phone;
	}
	public void setUser_phone(String user_phone) {
		this.user_phone = user_phone;
	}
	public String getUser_image() {
		return user_image;
	}
	public void setUser_image(String user_image) {
		this.user_image = user_image;
	}
	@Override
	public String toString() {
		return "ValidatorUser [user_id=" + user_id + ", user_name=" + user_name + ", user_email=" + user_email
				+ ", user_phone=" + user_phone + ", user_image=" + user_image + "]";
	}
	
	
}
